<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>BeginCode编程学习社区</title>

    <!-- Bootstrap -->
    <link href="${rc.contextPath}/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="${rc.contextPath}/js/jquery-3.3.1.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="${rc.contextPath}/js/bootstrap.min.js"></script>
    <link href="${rc.contextPath}/app_css/classify.css" rel="stylesheet">
</head>
<body>
<!-- 导航开始 -->
<#include "common/nav.ftl">
<#include "common/carousel.ftl">
<!-- 轮播结束 -->
<div class="container">
    <div class="row">
        <div class="col-md-9">

            <div class="data_list" id="recommend" style="display: none;">
                <div class="data_list_title">
                    <img src="${rc.contextPath}/icon/top2.png"/>
                    站长推荐
                </div>
                <div class="datas">
                    <ul>
                        <li style="margin-bottom: 30px">
                            <span class="title" id="recommendTitle"> </span>
                            <span class="summary" id="recommendAbstract"> </span>
                            <span class="info" id="recommendcDate"> </span>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="data_list">
                <div class="data_list_title">
                    <img src="${rc.contextPath}/icon/list.ico"/>
                ${classifyName}</div>
                <div class="datas">
                    <ul>

                    <#list classify.data as blogClassify>
                        <li style="margin-bottom: 30px">
                            <span class="title"><a
                                    href="${rc.contextPath}/blog/view/${blogClassify.blogId}">${blogClassify.blogTitle}</a></span>
                            <span class="summary">
                                ${blogClassify.blogAbstract}...
                            </span>
                            <span class="info">发表于 ${blogClassify.cDate?string('yyyy-MM-dd HH:mm')} 阅读(${blogClassify.views}) </span>
                        </li>
                        <hr style="height:5px;border:none;border-top:1px dashed gray;padding-bottom:  10px;"/>

                    </#list>

                    </ul>
                </div>
            </div>

        </div>


        <div class="col-md-3">

            <div class="data_list">
                <div class="data_list_title">
                    <img src="${rc.contextPath}/icon/classify.ico"/>
                    标签分类
                </div>
                <div class="datas">
                    <ul>
                        <span id="hotKeys">
                            <!-- 热门关键字 -->
                        </span>
                    </ul>
                </div>
            </div>

            <div class="data_list">
                <div class="data_list_title">
                    <img src="${rc.contextPath}/icon/user.ico"/>
                    活跃作者TOP-N
                </div>
                <div class="datas">
                    <ul>
                        <span id="activeUser">
                            <!-- 活跃用户 -->
                        </span>

                    </ul>
                </div>
            </div>

        </div>


    </div>
</div>
<hr>
<#include "common/foot.ftl">
</body>
<#assign ctx=rc.contextPath+"/" />
<script type="text/javascript">
    $(document).ready(function () {
        recommendClassify("${ctx}",${classifyId});
        hotKeys("${ctx}");
        activeUser("${ctx}");
    });
</script>
<script src="${rc.contextPath}/app_js/recommend.js?t=201808-5"></script>
</html>